import axios from '../axios'

// 客户管理  查询学校客户列表
// export const cusomerschoolList = (params) => {
//     return axios({
//       url: '/schoolquery/query',
//       method: 'get',
//       params
//     })
// }
// 客户管理学校客户
export const cusomerschoolList = (params) => {
  return axios({
    url: '/schoolquery/customerManagerQuery',
    method: 'get',
    params
  })
}
// 查询资源划分学校客户
export const resourceAssignQueryList = (params) => {
  return axios({
    url: '/schoolquery/resourceAssignQuery',
    method: 'get',
    params
  })
}
// 查询客户分配客户
export const customerAssignQueryList = (params) => {
  return axios({
    url: '/schoolquery/customerAssignQuery',
    method: 'get',
    params
  })
}
// 查询我的客户学校客户
export const myCustomerQueryList = (params) => {
  return axios({
    url: '/schoolquery/myCustomerQuery',
    method: 'get',
    params
  })
} 
// 客户管理 学校客户批量删除
export const  schoolDelete= (data) => {
  return axios ({
      url: '/school/delete',
      method:'post',
      data   
  })
}


// 客户管理 新建学校客户
export const  customerManagerAdd= (data) => {
  return axios ({
      url: '/schoolInfo/customerManagerAdd',
      method:'post',
      data   
  })
}

// 客户管理 更新学校客户
export const  customerManagerUpdate= (data) => {
  return axios ({
      url: '/schoolInfo/update',
      method:'post',
      data   
  })
}

// 客户管理 查看学校客户
export const  schoolQueryInfo= (params) => {
  return axios ({
      url: '/schoolInfo/detail',
      method:'get',
      params   
  })
}


// 客户管理 学校客户批量分配
export const schoolAssign = (data) => {
  return axios({
      url: '/school/assign',
      method: 'post',
      data
  })
}

// 解锁锁定
export const  schoolInfoLock= (params) => {
  return axios ({
      url: '/schoolInfo/lock',
      method:'post',
      params   
  })
}


// 查询
export const  schooldetail= (params) => {
  return axios ({
      url: 'schooltrack/detail',
      method:'get',
      params   
  })
}

// 查询学校跟进列表
export const schooltrackqueryTrackLogList = (params) => {
  return axios({
    url: 'schooltrack/queryTrackLog',
    method: 'get',
    params
  })
}


// 客户管理 查看学校客户跟进
export const  schooltrackSave= (data) => {
  return axios ({
      url: '/schooltrack/saveTrack',
      method:'post',
      data   
  })
}
// 资源划分新增客户
export const  resourceAssignAdd= (data) => {
  return axios ({
      url: '/schoolInfo/resourceAssignAdd',
      method:'post',
      data   
  })
}
// 客户分配新增客户
export const  customerAssignAdd= (data) => {
  return axios ({
      url: '/schoolInfo/customerAssignAdd',
      method:'post',
      data   
  })
}
// 我的客户新增
export const  myCustomerAdd= (data) => {
  return axios ({
      url: '/schoolInfo/myCustomerAdd',
      method:'post',
      data   
  })
}
// 保存跟进信息
export const  saveTrack= (data) => {
  return axios ({
      url: '/schooltrack/saveTrack',
      method:'post',
      data   
  })
}
// 获取沟通方式
export const school_communication_type = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=school_communication_type',
    method: 'get',
    params
  })
}
// 获取客户进展
export const school_progress = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=school_progress',
    method: 'get',
    params
  })
}
// 获取客户类型
export const school_type = (params) => {
  return axios({
    url: '/code/queryKVs?codeType=school_type',
    method: 'get',
    params
  })
}
// 查询用户跟进情况
export const querySchooltrackDetail = (params) => {
  return axios({
    url: '/schooltrack/detail',
    method: 'get',
    params
  })
}
// 查询客户跟进日志
export const queryTrackLog = (params) => {
  return axios({
    url: '/schooltrack/queryTrackLog',
    method: 'get',
    params
  })
}

// 查询跟进详情
export const trackDetail = (params) => {
  return axios({
    url: '/schooltrack/trackDetail',
    method: 'get',
    params
  })
}


// 客户管理 导入
export const  customerManagerImport= (params) => {
  return axios ({
      url: '/schoolInfo/customerManagerImport',
      method:'post',
      params   
  })
}


// 资源划分 导入
export const  resourceAssignImport= (params) => {
  return axios ({
      url: '/schoolInfo/resourceAssignImport',
      method:'post',
      params   
  })
}

// 客户分配 导入
export const  customerAssignImport= (params) => {
  return axios ({
      url: '/schoolInfo/customerAssignImport',
      method:'post',
      params   
  })
}

// 我的客户 导入
export const  myCustomerImport= (params) => {
  return axios ({
      url: '/schoolInfo/myCustomerImport',
      method:'post',
      params   
  })
}
// 报备
export const  saveRecord= (data) => {
  return axios ({
      url: 'schoolrecord/saveRecord',
      method:'post',
      data   
  })
}
// 查询学校名字重复
export const querySchools = (params) => {
  return axios({
    url: '/schoolInfo/querySchools',
    method: 'get',
    params
  })
}
// 查询报备列表
export const detailRecordInfo = (data) => {
  return axios({
    url: '/schoolrecord/detailRecordInfo',
    method: 'post',
    data
  })
}
export const detailRecord = (data) => {
  return axios({
    url: '/schoolrecord/detailRecord',
    method: 'post',
    data
  })
}
// 获取跟进数据
export const queryTrackList = (params) => {
  return axios({
    url: '/schooltrack/queryTrackList',
    method: 'get',
    params
  })
}
// 新增跟进
export const addTrack = (data) => {
  return axios({
    url: '/schooltrack/addTrack',
    method: 'post',
    data
  })
}
// 移入公海
export const removeTo = (data) => {
  return axios({
    url: '/school/removeTo',
    method: 'post',
    data
  })
}
// 查询公海列表
export const gonghaiQuery = (params) => {
  return axios({
    url: '/schoolquery/gonghaiQuery',
    method: 'get',
    params
  })
}
// 客户公海添加
export const gonghaiAdd = (data) => {
  return axios({
    url: '/schoolInfo/gonghaiAdd',
    method: 'post',
    data
  })
}
// 客户公海分配
export const schoolAssign1 = (data) => {
  return axios({
      url: '/school/assign',
      method: 'post',
      data
  })
}
// 学校字典库 查询列表
export const schoolDictPageList = (params) => {
  return axios({
    url: '/schoolDict/pageList',
    method: 'get',
    params
  })
}
// 学校字典库 ID查询
export const schoolDictQueryById = (params) => {
  return axios({
    url: '/schoolDict/queryById',
    method: 'get',
    params
  })
}
// 学校字典库 新增学校
export const schoolDictAdd = (params) => {
  return axios({
      url: '/schoolDict/addInfo',
      method: 'post',
      params
  })
}
// 学校字典库 编辑更新
export const schoolDictUpdate = (params) => {
  return axios({
      url: '/schoolDict/update',
      method: 'post',
      params
  })
}
// 学校字典库 导入
export const importSchool = (params) => {
  return axios({
    url: '/schoolDict/importData',
    method: 'post',
    params
  })
}
// 提交审核
export const commitAudit = (params) => {
  return axios({
    url: '/schoolInfo/commitAudit',
    method: 'post',
    params
  })
}
// 审核学校
export const auditSchool = (params) => {
  return axios({
    url: '/schoolInfo/auditSchool',
    method: 'post',
    params
  })
}
// 添加三方跟进信息
export const saveTrackingInfo = (data) => {
  return axios({
    url: '/schoolTripartiteTrackingInfo/saveTrackingInfo',
    method: 'post',
    data
  })
}
// 查询三方跟进信息
export const sfTrackingInfoPageList = (params) => {
  return axios({
    url: '/schoolTripartiteTrackingInfo/pageList',
    method: 'get',
    params
  })
}
// 查询三方
export const myTripartiteList = (params) => {
  return axios({
    url: '/schoolTripartite/myTripartiteList',
    method: 'get',
    params
  })
}
// 查询三方客户
export const myPageList = (params) => {
  return axios({
    url: '/schoolTripartite/myPageList',
    method: 'get',
    params
  })
}
// 三方客户批量导入
export const  importTripartiteData= (params) => {
  return axios ({
      url: '/schoolTripartite/importTripartiteData',
      method:'get',
      params   
  })
}
// 商务合作中心三方导出
export const  exportTripartiteData= (params) => {
  return axios ({
      url: '/schoolTripartite/exportTripartiteData',
      method:'get',
      params   
  })
}